//
//  MyOWNUITableViewAppDelegate.m
//  MyOWNUITableView
//
//  Created by Jordy Heemskerk on 14-04-10.
//  Copyright __MyCompanyName__ 2010. All rights reserved.
//

#import "MyOWNUITableViewAppDelegate.h"
#import "RootViewController.h"
#import "Profile.h"
#import "Category.h"


@implementation MyOWNUITableViewAppDelegate

@synthesize window;
@synthesize navigationController;
@synthesize deviceid, baseURL;
@synthesize products, categories;
@synthesize language;


#pragma mark -
#pragma mark Application lifecycle

- (void)applicationDidFinishLaunching:(UIApplication *)application {    
    
    // Override point for customization after app launch    
	
	[window addSubview:[navigationController view]];
    [window makeKeyAndVisible];
	
	deviceid = [UIDevice currentDevice].uniqueIdentifier;
	
	baseURL = [[NSString alloc] init];
	baseURL = @"http://localhost/~Jordy/shopdeluxe/";
	//baseURL = @"http://145.92.203.71/";


}

- (void) showProfile: (id) nr {
	Profile *profileView = [[Profile alloc] initWithNibName:@"Profile" bundle:[NSBundle mainBundle]];
	[navigationController pushViewController:profileView animated:YES];
}

- (void)applicationWillTerminate:(UIApplication *)application {
	// Save data if appropriate
}


#pragma mark -
#pragma mark Memory management

- (void)dealloc {
	[navigationController release];
	[window release];
	[super dealloc];
}


@end

